﻿using AutoMapper;
using System;
using System.Collections.Generic;
using System.Text;
using Yq.BookList.BookListManagement.Books.Dtos;

namespace Yq.BookList.BookListManagement.Books.Mapper
{
    internal class BookMapper
    {
        public static void CreateMappings(IMapperConfigurationExpression configurationExpression)
        {
            configurationExpression.CreateMap<Book, BookListDto>();
            configurationExpression.CreateMap<BookEditDto, Book>();
            configurationExpression.CreateMap<Book, BookEditDto>();
        }
    }
}
